<?php
include 'includes/application_top.inc';
include 'includes/paginate.php';

?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="Easy Living - Responsive Real Estate Template">
<meta name="keywords" content="Themes, real estate, responsive, themeforest, Templates">
<meta name="author" content="Rype Pixel [Chris Gipple]">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Welcome News Nation Video Page</title>
<!-- html5 support in IE8 and later -->
<script src="../../html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<!-- CSS file links -->
<link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
<link href="css/responsive.css" rel="stylesheet" type="text/css" media="all" />
</head>
<body>
<!-- Start Header -->
<header class="navbar yamm navbar-default navbar-fixed-top">
<div class="container">
<div></div>
    <div class="navbar-header">
        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
        </button>
        <a class="navbar-brand" href="#"><span> Sunder</span></a>
    </div>
    <div class="navbar-collapse collapse">
        <ul class="nav navbar-nav">
            <li class="dropdown">
                <a href="listing_grid.html" class="dropdown-toggle">LISTINGS</a>
            </li>
            <li class="dropdown">
            <ul class="nav navbar-nav userButtons">
                <li><a href="login.html" class="dropdown-toggle buttonGrey">LOGIN</a></li>
                <li><a style="margin-right:0px;" href="register.html" class="dropdown-toggle buttonGrey">REGISTER</a></li>
            </ul>
            </li>
        </ul>        
    </div><!--/.navbar-collapse -->
</div>
</header><!-- End Header -->
<!-- start subheader -->
<p>&nbsp;</p>
<!-- start recent properties -->
<section class="properties">
    <div class="container">
        <div class="row">
            <div class="col-sm-6">
                <div class="propertyItem">
                	<form name="form" method="post" id="form" action="action.php">
                		<input type="hidden" name="security" id="security" value="SHORTURL"  />
					  <table border="0" class="propertyDetails">
					  	<tr><td colspan="2"><h1>Full URL</h1></td></tr> 
					  	 
					  	 <?php
                if(@$_REQUEST['ac']=="emsg"){ echo '<tr><td colspan="2">url is wrong</td></tr>';}
                ?><?php
                if(@$_REQUEST['ac']=="suss"){ echo '<tr><td colspan="2">thankyou for use</td></tr>';}
                ?>
					  	<tr><td><input type="text" size="50" name="url" id="url" />
					            <!--<h1>Short String (Optional)</h1>
					            <input type="text" size="50" name="string" id="string" value="4x2vt"/><br /><br />-->            
					</td><td><input id="submit" type="submit" value="Shorten" name="submit" accesskey="l" /></td></tr>        
					</table></form>
					
                    <table border="1" class="propertyDetails">
                       <tr class="tabHead">
                            <td>Short Url</td>
                            <td>Long Url</td>
                            <td>Date</td>
                            <td>Total hit</td>
                            <td>Tools</td>
                        </tr>

	                   Delete 
	                   edit
	                   details
                   
                    	<?php
                    	$per_page = 5;  
                    	$limit_start=0;
						$limit_end=10;
                    	$select = "Select * From shorturl ORDER BY id DESC";
						
						
                    	$fetch = mysql_query($select);
						while ($row = mysql_fetch_array($fetch))
						{
							echo '<tr class="propertyDetails1"><td>'.$row['shorturl_code'].'</td><td>'.$row['long_url'].'</td><td>'.$row['create_datetime'].'</td><td>0</td><td></td></tr>';
						}
                    	/*while ($row = mysql_fetch_array($fetch))
						{
							?>
                       <tr><td><?php echo $row['shorturl_code'];?></td>
                            <td><?php echo $row['long_url'];?></td>
                            <td><?php echo $row['create_datetime'];?></td>
                            <td>Total hit</td>
                            <td><img src="images/icon-pencil.png" /></td>
                       </tr>
							
							<?
						}*/
                    	?>
                       
                    </table>
                    <!--<table border="1" class="propertyDetails">
                       <tr style="background-color:#e7e7e7;">
                           <td> <input type="checkbox" name="checkall" id="selectall" onclick="checkUncheckAll(this);"/> &nbsp;</td>
                            <td>Unique ID</td>
                            <td>Status</td>
                            <td>Video title</td>
                            <td>Added</td>
                            <td>Views</td>
                            <td>Category</td>
                            <td>Comments</td>
                            <td>Action</td>
                       </tr>
                    </table>
                    <table border="1" class="propertyDetails1">
                       <tr>
                            <td><input type="checkbox" name="checkall" id="selectall" onclick="checkUncheckAll(this);"/> &nbsp;</td>
                            <td>uniq_id;?</td>
                            <td>@</td>
                            <td>video_title;?></td>
                            <td>Apr 25, 2014</td>
                            <td>5</td>
                            <td>news section</td>
                            <td>View & Delete</td>
                            <td><img src="images/icon-pencil.png" /></td>
                       </tr>
                       <tr>
                            <td><input type="checkbox" name="checkall" id="selectall" onclick="checkUncheckAll(this);"/> &nbsp;</td>
                            <td>uniq_id;?</td>
                            <td>@</td>
                            <td>video_title;?></td>
                            <td>Apr 25, 2014</td>
                            <td>5</td>
                            <td>news section</td>
                            <td>View & Delete</td>
                            <td><img src="images/icon-pencil.png" /></td>
                       </tr>
                        <tr>
                            <td><input type="checkbox" name="checkall" id="selectall" onclick="checkUncheckAll(this);"/> &nbsp;</td>
                            <td>uniq_id;?</td>
                            <td>@</td>
                            <td>video_title;?></td>
                            <td>Apr 25, 2014</td>
                            <td>5</td>
                            <td>news section</td>
                            <td>View & Delete</td>
                            <td><img src="images/icon-pencil.png" /></td>
                       </tr>
                    </table>-->
				<hr />
                </div>
            </div>
        </div><!-- end row -->
    </div><!-- end container -->
</section>
<!-- end recent properties -->
<div class="bottomBar">
    <div class="container">
        <p>CopyRight @ News Nation</p>
    </div>
</div>

<!-- JavaScript file links -->
<script src="js/jquery.js"></script>			<!-- Jquery -->
<script src="js/bootstrap.min.js"></script>  <!-- bootstrap 3.0 -->
<script src="js/respond.js"></script>

</body>
</html>